<html>
<head><title>uuCanvas.Layer - glossy</title>

    <script type="text/xaml" id="xaml"><?xml version="1.0"?>
      <Canvas xmlns="http://schemas.microsoft.com/client/2007"></Canvas></script>
<script type="text/javascript" src="../uupaa-excanvas.js"></script>
    <style type="text/css">
      body { margin: 20px; font-family: arial,verdana,helvetica; background: #fff;}
      h1 { font-size: 140%; font-weight:normal; color: #036; border-bottom: 1px solid #ccc; }
      canvas { border: 2px solid #000; float: left; margin-right: 20px; margin-bottom: 20px; }
      pre { float:left; display:block; background: rgb(238,238,238); border: 1px dashed #666; padding: 15px 20px; margin: 0 0 10px 0; }
    </style>
</head>
<body>
<script>
window.onload = function() {
  var x = 0, y = 0, i ,iz, j, jz;
  var ary = ["GRED", "GPEACH", "GGOLD", "GLEMON", "GSLIVER",
             "GGRAY", "GBLACK", "GBLUE", "GGREEN",
             "GBLOODORANGE"];
  var d = new uuCanvas.Layer(document.getElementById("layerspace"), 800, 600);
  d.addCanvas("a").show();

  uuCanvas.ready(function() {
    for (i = 0, iz = ary.length; i < iz; ++i) {
      d.angleGlossy(x + i * 70, y + i * 10, ary[i], { r: i * 6, angle: i * 8 - 45 });
      d.metaboGlossy(x + i * 70, y + i * 20 + 120, ary[i], { r: i * 2.8, tarun: i * 0.5 + 3 });
      d.jellyBean(x + i * 70, y + i * 30 + 200, ary[i]);
    }
  });
};
</script>
    <h1>A uuCanvas.Layer <code>angleGlossy(), metaboGlossy(), jellyBean()</code> example</h1>
    <div>
      <div id="layerspace"></div>
      <pre>
&lt;div id="layerspace"&gt;&lt;/div&gt;
window.onload = function() {
  var x = 0, y = 0, i ,iz, j, jz;
  var ary = ["GRED", "GPEACH", "GGOLD", "GLEMON", "GSLIVER",
             "GGRAY", "GBLACK", "GBLUE", "GGREEN",
             "GBLOODORANGE"];
  var d = new uuCanvas.Layer(document.getElementById("layerspace"), 800, 600);
  d.addCanvas("a").show();

  uuCanvas.ready(function() {
    for (i = 0, iz = ary.length; i &lt; iz; ++i) {
      d.angleGlossy(x + i * 70, y + i * 10, ary[i], { r: i * 6, angle: i * 8 - 45 });
      d.metaboGlossy(x + i * 70, y + i * 20 + 120, ary[i], { r: i * 2.8, tarun: i * 0.5 + 3 });
      d.jellyBean(x + i * 70, y + i * 30 + 200, ary[i]);
    }
  });
};
      </pre>
    </div>
</body>
</html>
